package com.study.design.pattern.pattern.creational.singleton.hungry;

/**
 * @Author: gongsl
 * @Date: 2025-02-23 13:57
 * @description: 枚举单例
 */
public enum EnumSingleton {

    INSTANCE;

    // 可在此添加其他方法和属性
    public void doSomething() {
        System.out.println("doing something...");
    }

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }
}
